<!-- 模板：变更到期时间 -->
<script id="tpl-genewal" type="text/template">
    <div class="am-padding-xs am-padding-top-sm">
        <form id="my-form" class="am-form tpl-form-line-form" method="post" action="">
			<div class="am-form-group">
				<label class="am-u-sm-3 am-form-label">当前到期时间</label>
				<div class="am-u-sm-8 am-u-end">
					<div class="am-form--static">{{expire}}</div>
				</div>
			</div>
			<div class="am-form-group">
				<label class="am-u-sm-3 am-form-label">变更方式</label>
				<div class="am-u-sm-8 am-u-end">
					<label class="am-radio-inline">
						<input type="radio" name="wxapp[mode]"
							   value="inc" data-am-ucheck checked> 增加
					</label>
					<label class="am-radio-inline">
						<input type="radio" name="wxapp[mode]" 
						value="dec" data-am-ucheck> 减少
					</label>
					<label class="am-radio-inline">
						<input type="radio" name="wxapp[mode]" 
						value="final" data-am-ucheck> 重置
					</label>
					<div class="help-block am-margin-top-sm">
						<small>重置：从今天的时间开始计算</small>
					</div>
				</div>
			</div>
			<div class="am-form-group">
				<label class="am-u-sm-3 am-form-label">变更单位</label>
				<div class="am-u-sm-8 am-u-end">
					<label class="am-radio-inline">
						<input type="radio" name="wxapp[term_unit]"
							   value="10" data-am-ucheck> 天
					</label>
					<label class="am-radio-inline">
						<input type="radio" name="wxapp[term_unit]" 
						value="20" data-am-ucheck> 月
					</label>
					<label class="am-radio-inline">
						<input type="radio" name="wxapp[term_unit]" 
						value="30" data-am-ucheck checked> 年
					</label>
				</div>
			</div>
			<div class="am-form-group">
				<label class="am-u-sm-3 am-form-label form-require">变更数值</label>
				<div class="am-u-sm-8 am-u-end">
					<input type="number" min="0" class="tpl-form-input"
						   placeholder="请输入要变更的数值(整数)" name="wxapp[term]" 
						   value="" required>
				</div>
			</div>
        </form>
    </div>
</script>